﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Hyjx.MixerService.Objects
{
    /// <summary>
    /// 原材料公差
    /// </summary>
    public class MaterialTolerance
    {
        /// <summary>
        /// 原材料名称
        /// </summary>
        [JsonPropertyName("name")]
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// 原材料编码
        /// </summary>
        [JsonPropertyName("code")]
        public int Code { get; set; }
        /// <summary>
        /// 公差上限
        /// </summary>
        [JsonPropertyName("upperLimit")]
        public float UpperLimit { get; set; }
        /// <summary>
        /// 公差下限
        /// </summary>
        [JsonPropertyName("lowerLimit")]
        public float LowerLimit { get; set; }
    }
}
